Repository navigation
Conversation
joe4dev
force-pushed
the
devx-1089-agentic-eval
branch
from
November 23, 2026 15:08
eaa4afa to
a483b1d
Compare
joe4dev
force-pushed
the
devx-1089-iam-actions
branch
from
November 23, 2026 15:19
29d22cf to
0c43817
Compare
evals/agentic runs Claude Code headless against an isolated LocalStack on a random port, on small CloudFormation projects that fail on IAM, and grades the deployed state after a clean redeploy (no LLM judge). Every arm gets the AWS CLI and LocalStack's log; --without-mcp drops the server for a fair baseline. - 06-08: the deciding policy is in another account the agent can't read (event bus source, KMS encryption context, bucket prefix by principal tag). They show what the server adds. - 01-05: no-harm checks where the agent can read every policy: a missing permission, an explicit deny and a permissions boundary (guardrails the agent must not weaken), a Lambda resource policy, and a failure that isn't IAM. - Whether the agent called localstack-app-inspector or localstack-iam-policy-analyzer is reported, not graded. - agentic-eval.yml runs on demand (every scenario unless one is given) and weekly (02, 05, 06-08) through OpenRouter. Secrets stay out of the agent's scripts and the uploaded results; Claude Code and the AWS CLI are pinned where Dependabot updates them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joe4dev
force-pushed
the
devx-1089-agentic-eval
branch
from
November 23, 2026 15:20
884709b to
3296804
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
DEVX-1089 asks for the IAM actions to be verified with a live agent fixing real failures. This adds an end-to-end evaluation: Claude Code, headless, fixes small CloudFormation projects that fail on IAM. Grading uses the deployed state after a clean redeploy, not the transcript and not an LLM judge.
Stacked on the IAM actions PR (#140).
Solution
evals/agentic/run.mjs: starts an isolated LocalStack on a random port, deploys the scenario, and runs the agent. It then redeploys from scratch and runs deterministic checks.--without-mcpas the baseline. Both get the AWS CLI and LocalStack's log, so the baseline is fair.OPENROUTER_API_KEYandOPENROUTER_MODELare set.06–08put the deciding policy in another account (event bus source, KMS encryption context, bucket prefix by principal tag). They show what the server adds.01–05are no-harm checks where the agent can read every policy: two guardrails it must not weaken, a missing permission, a Lambda resource policy, and a failure that isn't IAM.agentic-eval.yml:02,05and06–08, through OpenRouter.LOCALSTACK_AUTH_TOKENandOPENROUTER_API_KEY, and the repository variableEVAL_OPENROUTER_MODEL(e.g.anthropic/claude-sonnet-5.5). The job fails early if any is missing.yarn test:evals(runner unit tests, in CI) andyarn eval:agentic.Before this leaves draft
awson the host, which can read host files (e.g./proc/self/environholding the OpenRouter key in CI). Runawsin a container that mounts only the project.EVAL_OPENROUTER_MODEL.Results
Run on 2026-11-23, 3 runs per scenario per arm, Sonnet 5.5:
The per-scenario table is in #140. A run takes 1–2.5 minutes and costs $0.04–0.135. A weekly run of 5 scenarios costs about $0.50.
Testing
yarn test:evals: 33/33.🤖 Generated with Claude Code